#ifndef WIDGET_H
#define WIDGET_H

#include <libdaq/device/DAQ331M/daq_331_m.h>

#include <QWidget>

//#define USE_MODBUS
#define USE_TCP_CLIENT
//#define USE_RS485

using namespace libdaq::device;

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget {
Q_OBJECT

public:
  Widget(QWidget *parent = nullptr);

  ~Widget();

private slots:

  void on_ConnectPushButton_clicked();

  void on_StartPWM1PushButton_clicked();

  void on_StopPWM1PushButton_clicked();

  void on_StartPWM2PushButton_clicked();

  void on_StopPWM2PushButton_clicked();

private:
  Ui::Widget *ui;
  DAQ331M daq331m_;
};

#endif // WIDGET_H
